//
//  DiscoveryCell.m
//  EverydayDemo
//
//  Created by qianfeng01 on 15-7-18.
//  Copyright (c) 2015年 qianfeng01. All rights reserved.
//

#import "DiscoveryCell.h"
#import "UIImageView+WebCache.h"
@implementation DiscoveryCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)setData:(HomePageModel *)model
{
    [self.iconImage sd_setImageWithURL:[NSURL URLWithString:model.imageUrl]placeholderImage:[UIImage imageNamed:@"default.png"]];
    self.titleLabel.text=model.title;
    self.categoryLabel.text=model.categryName;
    self.authorLabel.text=model.authorName;
    self.readCountLabel.text=model.readCount;
}
@end
